define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {
		function get_data_changePassword(result) {
			if(false) {
                 result = '{"success": true,"msg": "修改成功","result": null,"process_time": 1385615688}';
                 return JSON.parse(result);
			} else {
				return result;
			}
		}
		//返回信息
		return {
			//修改密码
			change_password: function(login_password,pay_password,re_password,callback) {
				Http.post({
					method: 'member.advance.payPassword',
					old_passwd:login_password,
					passwd: pay_password,
					passwd_re: re_password
				}, function(result) {
					//函数回调
					if(callback){
						callback(get_data_changePassword(result));
					}
				}, function(e) {

				}, function() {

				});
			},
		};
	}
	factory.$inject = ['Http'];
	return app.registerService("Pay_password", factory);
});